$("#peopleBox").on('click', '.checkboxStyle', function () {
    $(this).children().attr('checked','true');
    $(this).addClass('selection').parent().siblings().children('.checkboxStyle').removeClass('selection');
});
$("#submission").click(function () {
    var customerId = $("#customerId").val();
    var productId = $("input[name='about']:checked").val();
    if(productId == "" || productId == null){
        alert("请选择一个商品！")
        return;
    }
    $.ajax({
        url: Feng.ctxPath +"/customer/verificationCodeTwo",
        type:'POST',
        data:{
            customerId:customerId,
            productId:productId
        },
        success:function (data) {
            Feng.success("兑换成功!");
            window.parent.location.reload();
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        },
        error:function (data) {alert("没有权限，请联系系统管理员！");}
    })
});